<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Showallidydynamic.jsp' starting page</title>
     <link href="/bestcleaner/js/tablecloth/tablecloth.css" rel="stylesheet" type="text/css" media="screen" />
	<script type="text/javascript" src="/bestcleaner/js/tablecloth/tablecloth.js"></script>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style>

body{
	margin:0;
	padding:0;
	background:#f1f1f1;
	font:70% Arial, Helvetica, sans-serif; 
	color:#555;
	line-height:150%;
	text-align:left;
}
a{
	text-decoration:none;
	color:#057fac;
}
a:hover{
	text-decoration:none;
	color:#999;
}
h1{
	font-size:140%;
	margin:0 20px;
	line-height:80px;	
}
h2{
	font-size:120%;
}
#container{
	margin:0 auto;
	width:1000px;
	background:#fff;
	padding-bottom:20px;
}
#content{margin:0 20px;}
p.sig{	
	margin:0 auto;
	width:680px;
	padding:1em 0;
}
form{
	margin:1em 0;
	padding:.2em 20px;
	background:#eee;
}
</style>
  </head>
  
  <body>
  <div id="container">
  <h1> <font size="4" style="font-family:'微软雅黑'"><a href="idydynamic/Addidydynamic.jsp">添加行业动态</a></font></h1>
  <form action="showallidydynamic" method="post">
    <div id="content">
      <table border=1 align="center" width="60%">
      <tr>
      <th width="10%">编号</th>
      <th width="40%">标题</th>
      <th width="10%">操作   </th>
      </tr>
      <s:iterator value="idydynamiclist" id="idydynamic">
      <tr>
      <td><s:property value="#idydynamic.id"/></td>
      <td><s:property value="#idydynamic.title"/></td>
      <td><a
					href="<s:url action="showoneidydynamic">
    			<s:param name="idydynamic.id" value="#idydynamic.id"></s:param></s:url>">
						查看</a>
						 <a
					href="<s:url action="deleteidydynamic">
    		<s:param name="idydynamic.id" value="#idydynamic.id">
    		</s:param>
    		</s:url>"
					onclick="return confirm('确定删除？')?true:false;"> 删除</a>
					</td></tr></s:iterator>
					<tr>
						<td  colspan="6" align="center">共<s:property
					value="session.idydynamictotalpage" />页&nbsp;&nbsp;&nbsp;第<s:property
					value="pagenow+1" />页&nbsp;&nbsp;&nbsp;<s:if test="pagenow>0">
					<a
						href="<s:url action="showallidydynamic"><s:param name="pagenow"  value="pagenow-1"/></s:url>">上一页</a>&nbsp;&nbsp;&nbsp;</s:if>
				<s:if test="pagenow+1 !=#session.idydynamictotalpage">
					<a
						href="<s:url action="showallidydynamic"><s:param name="pagenow" value="pagenow+1"/></s:url>">下一页</a>
				</s:if></td></tr>
     
      </table>
      </div>
      </form>
      </div>
  </body>
</html>
